// 机构管理相关接口
import vix from '@bairong/vix'

const { request } = vix
export function GetOrganizationListApi(data) {
  return request({
    url: '/sourceComp/list',
    method: 'post',
    data
  })
}

// 更新
export function updateApi(data) {
  return request({
    url: '/sourceComp/update',
    removeEmptyFields: false,
    method: 'post',
    data
  })
}

// 添加
export function addApi(data) {
  return request({
    url: '/sourceComp/add',
    method: 'post',
    data
  })
}

// 删除
export function deleteApi(data) {
  return request({
    url: '/sourceComp/delete',
    method: 'post',
    data
  })
}

// 禁用
export function disableApi(data) {
  return request({
    url: '/sourceComp/forbidden',
    method: 'post',
    data
  })
}
